package cn.hunau.bookstore.dao;

import java.util.List;

import cn.hunau.bookstore.exception.DaoException;
import cn.hunau.bookstore.pojo.Book;

/**
 * @author HuangBo
 *
 *         2022-01-22 10:54:32
 *
 */
public interface BookDao {

	/**
	 * 分页查询图书信息
	 * 
	 * @param beginIndex
	 * @param offset
	 * @return
	 * @throws DaoException
	 */
	public List<Book> queryBookByPageOrderByPubDate(int beginIndex, int offset) throws DaoException;

	public int count() throws DaoException;

	/**
	 * 查询首页新书
	 * 
	 * @return
	 * @throws DaoException
	 */
	public List<Book> queryNewIndexBook(int beginIndex,int offset) throws DaoException;

	/**
	 * 设置首页新书
	 * 
	 * @param book
	 * @throws DaoException
	 */
	public void insertIndexBook(Book book,Integer tag) throws DaoException;
}
